#!/bin/bash

app=$(basename $0)
if [ "$1" = "b" ] ;then
	docker build -t realsense-view -f realsense-view.dockerfile .
elif [ "$1" = "r" ] ;then
	docker run -ti --privileged --rm -e DISPLAY=$DISPLAY --gpus all --network host -v /tmp/.X11-unix:/tmp/.X11-unix:rw realsense-view
else
	echo ------help-------
	echo $app b : create a docker images called l4t-realsesense
	echo $app r : run a container from l4t-realsense
	echo ------help-------
fi
